package com.maplefire.handler.smile;

import com.maplefire.annotation.MessageHandlerType;
import com.maplefire.constant.Constants;
import com.maplefire.handler.SmileMessageHandler;
import com.maplefire.message.SmilePush2RetailMsg;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@MessageHandlerType(operateType = Constants.Type.START_GRAB_BILL, source = Constants.SOURCE_FROM_SMILE)
public class StartGrabBillSmileMessageHandler extends SmileMessageHandler {

    @Override
    public void handler(SmilePush2RetailMsg message) {
        log.info("开始处理微笑抢单信息,订单号为" + message.getOrderId());
        super.handler(message);
        log.info("执行开始抢单业务逻辑...");

    }

}